//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================
//==========================================================================
// Copyright (c) 2000-2004,  Elastos, Inc.  All Rights Reserved.
//==========================================================================
#ifndef __RTL_8139_H__
#define __RTL_8139_H__
#include "rtl8139.h"

extern netdrv * rtl_8139new(int * pPortBase, int * pIrq, int * pMedia);
extern int      rtl_8139_connect(void * softc, void** hardc);
extern int      rtl_8139xmit(netdrv* pThis);
extern void     _EnableIrq();
extern void     _DisableIrq();
extern void     rtl_8139_stutdown(netdrv *pThis);

#define DRVINITALIZE    0x00000001
#define ENABLEIRQ       0x00000002
#define DISABLEIRQ      0x00000003
#define DRVSHUTDOWN     0x00000004

#endif//__RTL_8139_H__
